<template>
  <div class="login">
    <div>
      用户名：<input
        type="text"
        v-model="username"
        placeholder="请输入您的用户名"
      />
    </div>
    <div>
      密码：<input
        type="text"
        v-model="password"
        placeholder="请输入您的密码"
      />
    </div>
    <button>登录</button>
  </div>
</template>

<script>
// import User from "@/api/user.js";
export default {
  name: "login",
  data() {
    return {
      username: "",
      password: "",
    };
  },
};
</script>

<style scoped lang="scss">
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  div {
    margin-bottom: 20px;
  }
}
</style>
